Optimal. Leaf size=86 \[ -\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x}}{9 c}+\frac {1}{9} b c d x^2 \sqrt {-1+c x} \sqrt {1+c x}+d x \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {5894, 12, 471,
75} \begin {gather*} -\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right )+d x \left (a+b \cosh ^{-1}(c x)\right )+\frac {1}{9} b c d x^2 \sqrt {c x-1} \sqrt {c x+1}-\frac {7 b d \sqrt {c x-1} \sqrt {c x+1}}{9 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 75
Rule 471
Rule 5894
Rubi steps
\begin {align*} \int \left (d-c^2 d x^2\right ) \left (a+b \cosh ^{-1}(c x)\right ) \, dx &=d x \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right )-(b c) \int \frac {d x \left (1-\frac {c^2 x^2}{3}\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=d x \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right )-(b c d) \int \frac {x \left (1-\frac {c^2 x^2}{3}\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=\frac {1}{9} b c d x^2 \sqrt {-1+c x} \sqrt {1+c x}+d x \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{9} (7 b c d) \int \frac {x}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=-\frac {7 b d \sqrt {-1+c x} \sqrt {1+c x}}{9 c}+\frac {1}{9} b c d x^2 \sqrt {-1+c x} \sqrt {1+c x}+d x \left (a+b \cosh ^{-1}(c x)\right )-\frac {1}{3} c^2 d x^3 \left (a+b \cosh ^{-1}(c x)\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 71, normalized size = 0.83 \begin {gather*} \frac {d \left (b \sqrt {-1+c x} \sqrt {1+c x} \left (-7+c^2 x^2\right )+a \left (9 c x-3 c^3 x^3\right )-3 b c x \left (-3+c^2 x^2\right ) \cosh ^{-1}(c x)\right )}{9 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.11, size = 73, normalized size = 0.85
method | result | size |
derivativedivides | \(\frac {-d a \left (\frac {1}{3} c^{3} x^{3}-c x \right )-b d \left (\frac {\mathrm {arccosh}\left (c x \right ) c^{3} x^{3}}{3}-c x \,\mathrm {arccosh}\left (c x \right )-\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, \left (c^{2} x^{2}-7\right )}{9}\right )}{c}\) | \(73\) |
default | \(\frac {-d a \left (\frac {1}{3} c^{3} x^{3}-c x \right )-b d \left (\frac {\mathrm {arccosh}\left (c x \right ) c^{3} x^{3}}{3}-c x \,\mathrm {arccosh}\left (c x \right )-\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, \left (c^{2} x^{2}-7\right )}{9}\right )}{c}\) | \(73\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 97, normalized size = 1.13 \begin {gather*} -\frac {1}{3} \, a c^{2} d x^{3} - \frac {1}{9} \, {\left (3 \, x^{3} \operatorname {arcosh}\left (c x\right ) - c {\left (\frac {\sqrt {c^{2} x^{2} - 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {c^{2} x^{2} - 1}}{c^{4}}\right )}\right )} b c^{2} d + a d x + \frac {{\left (c x \operatorname {arcosh}\left (c x\right ) - \sqrt {c^{2} x^{2} - 1}\right )} b d}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 83, normalized size = 0.97 \begin {gather*} -\frac {3 \, a c^{3} d x^{3} - 9 \, a c d x + 3 \, {\left (b c^{3} d x^{3} - 3 \, b c d x\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (b c^{2} d x^{2} - 7 \, b d\right )} \sqrt {c^{2} x^{2} - 1}}{9 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.14, size = 97, normalized size = 1.13 \begin {gather*} \begin {cases} - \frac {a c^{2} d x^{3}}{3} + a d x - \frac {b c^{2} d x^{3} \operatorname {acosh}{\left (c x \right )}}{3} + \frac {b c d x^{2} \sqrt {c^{2} x^{2} - 1}}{9} + b d x \operatorname {acosh}{\left (c x \right )} - \frac {7 b d \sqrt {c^{2} x^{2} - 1}}{9 c} & \text {for}\: c \neq 0 \\d x \left (a + \frac {i \pi b}{2}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )\,\left (d-c^2\,d\,x^2\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________